/**
 * JungoMobileWeb
 * Favorite.java
 * 
 * Copyright 2013 Teachizen
 * Written by cloudstick
 *	2013. 7. 30. first written.
 *
 * note:
 */
package com.jungo.web.bean;

import java.util.Date;

import lombok.Data;

/**
 * @author cloudstick
 *
 */
@Data
public class Favorite implements Comparable<Favorite> {
	private int fid;
	private String userid;
	private String category;
	private String title;
	private int min_price;
	private int max_price;
	private String contact;
	private Date reg_dt;
	private String str_dt;
	private int status;
	
	/**
	 * reg_dt를 기준으로하는 오름차순 정렬
	 * @param favorite 비교하기 위한 favorite 객체
	 * @return this.reg_dt <= favorite.reg_dt이면 0 또는 음수 리턴
	 */
	@Override
	public int compareTo(Favorite favorite) {
		return this.reg_dt.compareTo(favorite.reg_dt);
	}
}
